该类型的 Event 对象会在 charge
对象支付成功后触发,以 Webhooks 形式发送至客户配置的 Webhooks URL。详情请参考 Events 事件。
事件类型 | 描述 |
---|---|
charge.succeeded | 支付对象,支付成功时触发。 |
{
"id": "evt_ugB6x3K43D16wXCcqbplWAJo",
"created": 1427555101,
"livemode": true,
"type": "charge.succeeded",
"data": {
"object": {
"id": "ch_Xsr7u35O3m1Gw4ed2ODmi4Lw",
"object": "charge",
"created": 1427555076,
"livemode": true,
"paid": true,
"refunded": false,
"reversed": false,
"app": "app_1Gqj58ynP0mHeX1q",
"channel": "upacp",
"order_no": "123456789",
"client_ip": "127.0.0.1",
"amount": 100,
"amount_settle": 100,
"currency": "cny",
"subject": "Your Subject",
"body": "Your Body",
"extra": {},
"time_paid": 1427555101,
"time_expire": 1427641476,
"time_settle": null,
"transaction_no": "1224524301201505066067849274",
"refunds": {
"object": "list",
"url": "/v1/charges/ch_L8qn10mLmr1GS8e5OODmHaL4/refunds",
"has_more": false,
"data": []
},
"amount_refunded": 0,
"failure_code": null,
"failure_msg": null,
"metadata": {},
"credential": {},
"description": null
}
},
"object": "event",
"pending_webhooks": 0,
"request": "iar_qH4y1KbTy5eLGm1uHSTS00s"
}